package com.foftact.etfhist;

import java.math.BigDecimal;
import java.util.Date;

/**
 * ETF历史净值明细模型类
 * 对应数据库表：etf_history
 */
public class ETFHistory {
    private Long id;             // 主键ID
    private String fundCode;     // 基金代码
    private Date navDate;        // 净值日期
    private BigDecimal unitNav;  // 单位净值
    private BigDecimal cumulativeNav; // 累计净值
    private BigDecimal dailyGrowthRate; // 日增长率(%)
    private String purchaseStatus; // 申购状态
    private String redemptionStatus; // 赎回状态
    private String dividendInfo; // 分红送配
    private String dataSource;   // 数据来源
    private Date createTime;     // 创建时间
    private Date updateTime;     // 更新时间

    // getter和setter方法
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getFundCode() {
        return fundCode;
    }

    public void setFundCode(String fundCode) {
        this.fundCode = fundCode;
    }

    public Date getNavDate() {
        return navDate;
    }

    public void setNavDate(Date navDate) {
        this.navDate = navDate;
    }

    public BigDecimal getUnitNav() {
        return unitNav;
    }

    public void setUnitNav(BigDecimal unitNav) {
        this.unitNav = unitNav;
    }

    public BigDecimal getCumulativeNav() {
        return cumulativeNav;
    }

    public void setCumulativeNav(BigDecimal cumulativeNav) {
        this.cumulativeNav = cumulativeNav;
    }

    public BigDecimal getDailyGrowthRate() {
        return dailyGrowthRate;
    }

    public void setDailyGrowthRate(BigDecimal dailyGrowthRate) {
        this.dailyGrowthRate = dailyGrowthRate;
    }

    public String getPurchaseStatus() {
        return purchaseStatus;
    }

    public void setPurchaseStatus(String purchaseStatus) {
        this.purchaseStatus = purchaseStatus;
    }

    public String getRedemptionStatus() {
        return redemptionStatus;
    }

    public void setRedemptionStatus(String redemptionStatus) {
        this.redemptionStatus = redemptionStatus;
    }

    public String getDividendInfo() {
        return dividendInfo;
    }

    public void setDividendInfo(String dividendInfo) {
        this.dividendInfo = dividendInfo;
    }

    public String getDataSource() {
        return dataSource;
    }

    public void setDataSource(String dataSource) {
        this.dataSource = dataSource;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ETFHistory{" +
                "id=" + id +
                ", fundCode='" + fundCode + '\'' +
                ", navDate=" + navDate +
                ", unitNav=" + unitNav +
                ", cumulativeNav=" + cumulativeNav +
                ", dailyGrowthRate=" + dailyGrowthRate +
                ", purchaseStatus='" + purchaseStatus + '\'' +
                ", redemptionStatus='" + redemptionStatus + '\'' +
                ", dividendInfo='" + dividendInfo + '\'' +
                '}';
    }
}